Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 11 Dec 2020 08:31:30 +0000 (08:31 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 11 Dec 2020 08:31:30 +0000 (08:31 +0000)
commitfddf73c39260f0b91ad496d52313918e5701eee7
treeee45672173bf4d8bf790e2fd8267bf34ca0c68ba
parent0e75596a20d8760965e8d8bab97623e7f4ee3a54
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp